import jieba

if __name__ == '__main__':
    text = "我在陕西交通职业技术学院软件技术专业学习"

    # for word in jieba.cut(sentence=text):
    #     # print(word)
    #     print(word, end=" ")

    # sentence 要进行分词的中文语句
    seg_gen = jieba.lcut(sentence=text)
    print(type(seg_gen))
    print(seg_gen)

    print(" ".join(seg_gen))

